package com.repair.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@Data
@ApiModel(value = "查询报修项目参数对象")
public class RepairReportFindForm {
    @ApiModelProperty("报修项目名字")
    private String repairName;
    @ApiModelProperty("是否自费")
    @Min(value = 0,message = "是否自费不能小于0")
    @Max(value = 1,message = "是否自费不能大于1")
    private Integer isNeedPay;
    @ApiModelProperty("页码")
    @Min(value = 1,message = "页码不能小于1")
    private Integer pageNum;
    @ApiModelProperty("每页条数")
    @Min(value = 1,message = "每页条数不能小于1")
    @Min(value = 100,message = "每页条数不能大于100")
    private Integer pageSize;
}
